



/* Code from ANDY BELL Modern CSS Reset*/

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body, h1, h2, h3, h4, p,
figure, blockquote, dl, dd {
  margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
}

/* Set shorter line heights on headings and interactive elements */
h1, h2, h3, h4,
button, input, label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1, h2,
h3, h4 {
  text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input, button,
textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}






/*------original code-------------*/




/* Actual Background Everything*/

body {
  background-color: gray;
  min-height: 100vh;
  font-family: Helvetica, Arial, sans-serif, Courier , sans-serif;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows:  2fr;    
  margin: 0;
  gap: .75em; 
  grid-template-areas:
  "navbar"
  "main";
    /* Desktop  and anything bigger than a phone*/

    @media (width >=80em) {
      grid-template-rows:  3fr;
    }    

   @media (width >=110em) {
      grid-template-rows: 3fr;
    }   


}



/* HEADER */
  

.nav-bar ul{
  list-style-type: none;
  background-color: gray;
  padding: 3rem;
  margin: 0;
  overflow: hidden;
}

.nav-bar a {
  float: left;
  font-size: 2rem;
  text-decoration: none;
  display: block;
  text-align: center;
  color: white;
  padding: 2rem;
}


.nav-bar a:hover {
  background-color: orange;
  
}

/* MAIN AREA*/

main{
  background-color: lightyellow;
  grid-area: main;
  padding: 0rem;

}



.product-grid {
  display: grid;
  background-color: lightyellow;
  padding: 2rem; 
  gap: .5rem;
  grid-template-columns:
  repeat(1, auto);
  align-items: center;


  @media (width >=70em) {
      grid-template-columns: repeat(2, auto);
      justify-content: space-evenly;
  }   
  

  @media (width >=100em) {
      grid-template-columns: 1fr 1fr;
      grid-template-rows: 1fr 1fr;
      justify-content: space-evenly;
  }    
}    
        
.slideshow-container {
  max-width: 80rem;
  position: relative;
  margin: auto;
  overflow: hidden;
  touch-action: pan-y;
}

/* Hide the images by default */
.mySlides {
  display: none;
}



/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 35%;
  width: auto;
  margin-top: -22px;
  padding: 50px;
  color: orange;
  font-weight: bold;
  font-size: 4rem;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

@media (width >=70em) {
  .prev, .next {
    font-size: 3em;
    top: 40%;
  }
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Caption text */
.text {
  color: white;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}


/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: black;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

@media (width >=70em) {
  .dot {
    height: 1.5em;
    width: 1.5em;
  }
}
.active, .dot:hover {
  background-color: orange;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}



/* !!!ALL THE FONTS AND STUFF ARE FOR PHONE SIZE SO FOR LAPTOP AND DESKTOP
YOU GOTTA DO A MEDIA QUERY THAT CHANGES FONT SIZE WITH SCREEN SIZE !!! */




.card-price {
color: black;
font-size: 3rem;
}

.card-title {
  color: black;
  font-size: 4rem;
  padding: 0;
  margin: 0;
  align-items: center;

}

.card-description {
margin: 1rem;
padding: 50;
color: black;
font-size: 2rem;
list-style: disc;

  
    @media (width>=70em) {
    font-size: 2em;
  }



  @media (width>=100em) {
    font-size: 2.5em;
  }
}


